package com.cspg.ssss.service;

import com.cspg.ssss.domain.ObjHistoryEntity;
import com.cspg.ssss.repository.ObjHistoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ObjHistoryService {
    @Autowired
    ObjHistoryMapper objHistoryMapper;

    public List<ObjHistoryEntity> getObjectHistory(Map<String,Object> condition){

        return objHistoryMapper.selectObjHistory(condition);
    }

    public int addObjectHistory(ObjHistoryEntity en){
        return objHistoryMapper.insertObjHistory(en);
    }

    public void batchInsertObjHistory(Map<String,Object> condition){
        objHistoryMapper.batchInsertObjHistory(condition);
    }

    public void batchInsertApproveObjHistory(Map<String,Object> condition){
        objHistoryMapper.batchInsertApproveObjHistory(condition);
    }

    public void batchInsertObjHistoryForGrade(Map<String,Object> condition){
        objHistoryMapper.batchInsertObjHistoryForGrade(condition);
    }

    public void batchInsertApproveObjHistoryForGrade(Map<String,Object> condition){
        objHistoryMapper.batchInsertApproveObjHistoryForGrade(condition);
    }
}
